import axios from "axios";

const acceptDetailedTaskByCrowdId = async (taskId: number, crowdId: number) => {
    return new Promise(((resolve, reject) => {
        axios.get("/api/detailed-task/allotTaskByCrowdId", {
            params: {
                taskId,
                crowdId
            }
        }).then((response) => {
            resolve = response.data;
        })
    }))
}

export default acceptDetailedTaskByCrowdId;